// 用户相关
const userInfoReq = require('../request/user/userInfo-req.js');
const uploadReq = require('../request/user/upload-req.js');
const projectReq = require('../request/project/project-req.js');
const projectUserReq = require('../request/project/config-user-project.js');

function initRouter(app, basePath) {
    // 用户接口
    app.use(`/${basePath}/user`, userInfoReq)
    // 上传接口
    app.use(`/${basePath}/upload`, uploadReq)
    // 项目接口
    app.use(`/${basePath}/project`, projectReq)
    // 授权用户项目
    app.use(`/${basePath}/projectUser`, projectUserReq)
}

module.exports = initRouter